import java.util.Arrays;
import java.util.Random;

public class IceCream {
	private static Random random = new Random(47);
	static final String[] FLAVORS = {
			"Chocolate","Strawberry","Vanilla Fudge Swirl",
			"Mint Chip","Mocha Almond Fudge","Rum Raisin",
			"Praline Cream","Mud Pie"
	};

	public static String[] flavorSet(int n)
	{
		if (n > FLAVORS.length)
		{
			throw  new IllegalArgumentException("Set too big");
		}
		String[] results = new String[n];
		boolean[] picked = new boolean[FLAVORS.length];
		for (int i = 0 ;i < n ;i ++)
		{
			int t;
			do {
				t = random.nextInt(FLAVORS.length);
			}
			while (picked[t]);
			results[i] = FLAVORS[t];
			picked[t] = true;
		}
		return  results;
	}

	public int[][] MultidimensionalPrimitiveArray()
	{
		int[][] a = {
				{1,2},
				{2,3,4}
		};
		return a;
	}

	public static void main(String[] args)
	{
		IceCream iceCream = new IceCream();
		int[][] a = iceCream.MultidimensionalPrimitiveArray();
		System.out.println(Arrays.deepToString(a));
		int[][][] b = new int[2][3][4];
		System.out.println(Arrays.deepToString(b));
	}
}
